package com.spring.springdemo.springtest;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class Config {

    @Bean("student")
    public StudentFactory studentFactory (){
        return new StudentFactory();
    }

//    @Bean
//    public Student student() throws Exception {
//        return studentFactory().getObject();
//    }

}
